import 'package:WebTest/service/home_request.dart';
import 'package:flutter/material.dart';

class XJHomeContent extends StatefulWidget {
  @override
  _XJHomeContentState createState() => _XJHomeContentState();
}

class _XJHomeContentState extends State<XJHomeContent> {
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
//    发送网络请求
  HomeRequest.requestMovieList(0,context: context);
  }
  @override
  Widget build(BuildContext context) {
    return ListView.builder(
        itemCount: 30,
        itemBuilder: (ctx, index) {
          return ListTile(title: Text("$index"),);
        });
  }
}
